package com.linktrip.devicemanager.server;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.linktrip.devicemanager.dao.IUserDao;
import com.linktrip.devicemanager.entity.UserInfo;

@Service(value = "userService")
public class UserService {

	Logger log = LoggerFactory.getLogger(UserService.class);
	
	@Autowired
	IUserDao userDao;

	public UserInfo getUserByName(String name) {
		return userDao.getEntityByName(name);
	}
	
	public boolean updateUserPW(UserInfo user){
		return userDao.updateUser(user);
	}
}
